home *** CD-ROM | disk | FTP | other *** search
- cxref-cpp
- =========
-
-
- This is a copy of the gcc-2.6.3 pre-processor with some modifications
- to make cxref work better.
-
- The files are modified in the following way.
-
- cccp.c - Hacked about a bit.
- cexp.y - As original.
- version.c - As original.
- pcp.h - As original.
- config.h - As original.
- tm.h - As original or if this fails the minimum required is:
- CPP_PREDEFINES
- BITS_PER_*
- TARGET_*
- *_TYPE
-
- config.h & tm.h
- ---------------
-
- config.h and tm.h need to be taken from the appropriate place in the
- gcc-2.6.3 source tree depending on the system architecture that you
- are using. Use the configure script from gcc-2.6.3 if you are not
- sure.
-
- The only config.h and tm.h supplied are for a 386/486 running Linux
- and a sparc with SUNOS 4.1.x and Solaris 2.x.
-
- Machine tm.h config.h
-
- i386 Linux config/i386/linux.h config/i386/xm-i386.h
-
- Sparc Solaris 2.3 config/sparc/sol2.h config/sparc/xm-sysv4.h
- Sparc SUNOS 4.1 config/sparc/sparc.h config/sparc/xm-sparc.h
-
- Make a logical link to these files from config.h and tm.h.
-
- Makefile
- --------
-
- Makefile needs to have the include directories hacked, use
- `gcc -E -v - </dev/null' to see the list of paths,
-
- Those marked `->' below are needed.
-
- | Reading specs from /usr/lib/gcc-lib/i486-linux/2.5.8/specs
- | gcc version 2.5.8
- | /usr/lib/gcc-lib/i486-linux/2.5.8/cpp -lang-c -v -undef ...
- | GNU CPP version 2.5.8 (80386, BSD syntax)
- | #include "..." search starts here:
- | #include <...> search starts here:
- 1 -> | /usr/local/include
- 2 -> | /usr/i486-linux/include
- 3 -> | /usr/lib/gcc-lib/i486-linux/2.5.8/include
- | /usr/include
- | End of search list.
-
- Add these to the makefile as described below:
-
- 1) INCLUDE_DIR1
- 2) INCLUDE_DIR2
- 3) INCLUDE_DIR3
-
- Testing
- -------
-
- When cxref-cpp has been made use 'gcc -E -dM - < /dev/null' and
- 'cxref-cpp -dM - < /dev/null' and check that the default #defines are
- the same in the two programs. The #define CPP_PREDEFINES in tm.h is
- used to set these
-